package com.qili.entity.zx;

import com.qili.annotation.Bookmark;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.stereotype.Component;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 服务评价主表
 */
@Table(name = "zx_project_evaluation")
@Data
@ToString
@EqualsAndHashCode
@Component
public class ZxProjectEvaluation implements Serializable {

    @Column(name = "sp_id")
    private String spId;

    @Transient
    private String SpName;

    /**
    评论id
     */
    @Id
    @Column(name = "spe_id")
    private String speId;


    /**
     * 建议或意见
     */
    @Column(name = "spe_opinion")
    @Bookmark(mark = "PO_opinion")
    private String speOpinion;

    /**
     * 评分时间
     */
    @Column(name = "create_date")
    private Date createDate;

    /**
     * 评分人
     */

    @Column(name = "spe_createBy")
    private String createBy;

    /**
     * 被评分人
     */
    @Column(name = "spe_target")
    private String speTarget;

    /**
     * 该项目的平均分
     */
    @Column(name = "score")
    @Bookmark(mark = "PO_score")
    private String score;

    /**
     * 评价类型  1:对实施人员/供方/    -->监理项目经理的评价
     *          2:对市场人员的评价    -->项目发布人
     */
    @Column(name = "spe_type")
    private String speType;

    /**
     * 该评价对应的分值
     */
    @Transient
    private List<ZxProjectEvaluationScore> scoreList;

    /**
     * 对监理项目经理的评价id
     */
    @Transient
    private String evaManagerId;

    /**
     * 对项目发布人的评价id
     */
    @Transient
    private String evaCreaterId;

    @Transient
    private String source;

    @Transient
    private String aindex;

    @Transient
    private String projectSource;

    @Transient
    private String caseId;

    @Transient
    @Bookmark(mark = "PO_creatorName")
    private String creatorName;

    @Transient
    @Bookmark(mark = "PO_creatorComName")
    private String creatorComName;

    @Transient
    private String auto;

}
